package com.ln.yygh.hosp.repository;


import com.ln.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface DepartmentRepository extends MongoRepository<Department, String> {
    //我们这次查询的信息又两个条件且两条件并列都要满足
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);

}
